#+_+ coding:utf-8 +_+

def enum(*sequential, **named):
    enums = dict(zip(sequential, range(len(sequential))), **named)
    return type('Enum', (), enums)
 
#Numbers = enum('ZERO', 'ONE', 'TWO')
MSG_TYPE = enum(
    TEXT  = "text",
    EVENT = "event"
)


if __name__ == "__main__":
    print MSG_TYPE.TEXT
